import { getPrescription } from "@/apis/consult"
import { showImagePreview } from "vant"

export const useShowPre = () =>{
  //查看处方
const showPrescription = async (id?: string) => {
  if (id) {
    const res = await getPrescription(id)
    showImagePreview([res.data.url])
  }
}
return{ showPrescription }
}